import { reactive, ref } from "vue";

export default function InitHook() {
  const formDataRef = ref<any>(null);
  const loading = ref<boolean>(false);
  const formState = reactive<Partial<{ remark: string; innerRemark: string; type: number }>>({
    remark: undefined,
    innerRemark: undefined,
    type: 1
  });
  return {
    formState,
    loading,
    formDataRef
  };
}
